# NOT RUN {
psi <- powPar(theta = seq(from = 0.5, to = 1.5, by = 0.5),
n = seq(from = 10, to = 30, by = 10),
muA = 0,
muB = 1)
pp(psi, name = "muA")
## an example of usage
powFun <- function(psi){
power.t.test(n = n(psi),
delta = pp(psi, "muA") - pp(psi, "muB"),
sd = theta(psi)
)$power
}
## testing the power-function
powFun(psi)
# }
Run the code above in your browser using DataLab